package com.sumainfor.pc.gmio.controller.director;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.gmio.service.DiChargesDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.io.Serializable;
import java.util.Map;

/**
 *查询各个地区的收费标准
 */
@RestController
@RequestMapping("/wechat/tenant/director/DiChargesDept")
public class DiWxChargesDeptController implements Serializable {
    @Autowired
    private DiChargesDeptService diChargesDeptService;

    /**
     *查询房源的水电燃收费标准
     */
    @GetMapping("/getChargesDeptWx")
    public JsonResult getChargesDeptWx(@RequestParam Map<String,Object> params){
        JsonResult result=new JsonResult();
        Map<String,Object> map=diChargesDeptService.getChargesDeptWx(params);
        if (map!=null){
            result.put(map);
        }else{
            result.putFailed("服务器繁忙");
        }
        return result;
    }

}
